//variables to set based on messages from the server


#pragma once
//message struct for the player
struct MsgInfoIn
{
	//ship status
	int energy;		//remaining energy
	int shields;	//shield power
	int missiles;	//missiles left

	//game status
	int stars;		//stars in any given quadrant
	int enemies;	//enemies in any given quadrant
	int turns;		//turns remaining to finish the game
	int stations;		//turns remaining to finish the game

	int Vpos;
	int posX;
	int posY;
	int posQX;
	int posQY;
	//condition
	//???

	//systems 
	bool hyperdrive;
	bool sublight;
	bool scanner;
	bool missile;
	bool blaster;
	bool shield;

	MsgInfoIn();

	//converts x, y position into a position in the vector
	void ConvertCoords(int x, int y);

	void SetPos(int p) {Vpos = p;}
	void SetPos(int qx,int qy,int x,int y);
	void SetShip(int en, int sh, int mi);
	void SetGameStatus(int s, int en, int t, int st);
	void SetSystems(bool hd,bool sl,bool sc,bool mi,bool bl,bool sh);
	//void TranslateMsg(msg);
};

struct MsgInfoOut
{
	int click;
	char type;
	int posX;
	int posY;

	bool shieldUpdate;

	MsgInfoOut();

	void SetInfo(int c, char t, int p);
	//converts vector position into an x and y to send to server
	void ConvertCoords(int a);

	void CreateMsg();//converts data into string to send
	//GetMsg() {return msg;}	//returns the messagea
};